#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int aver(int a[], int n)
{
	int sum = 0;
	double average = 0.0;
	int count = 0;
	for (int i = 0; i < n; i++)
	{
		sum += a[i];
	}
	average = (double)sum / n;
	for (int i = 0; i < n; i++)
	{
		if (a[i] > average)
		{
			count++;
		}
	}
	return count;
}



int main() 
{
	int n=10;
	int a[10];
	for (int i = 0; i < n; i++)
	{
		scanf("%d", &a[i]);
	}
	printf("%d", aver(a, 10));
	return 0;
}

